Skip to content

feat(lint): add opt-in YAML and GitHub Actions checks - #255

Merged
dpc merged 1 commit into
rustshop:masterfrom
dpc:dpc/jj-wtmyytlqpnvl
Nov 20, 2026
Merged

dpc merged 1 commit into
rustshop:masterfrom
dpc:dpc/jj-wtmyytlqpnvl

Conversation

@dpc

@dpc dpc commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Posted by Tau

Summary

Fedimint added separate checks for malformed YAML and GitHub Actions workflows in fedimint/fedimint#9290. Flakebox projects can now opt into those checks without maintaining custom hook code. Projects that do not use them do not need the lint tools.

Details

  • yamllint.enable = true checks tracked .yml and .yaml files for syntax and duplicate keys, without enforcing style.
  • actionlint.enable = true checks tracked workflow files directly under .github/workflows/. It runs ShellCheck on inline shell scripts independently of Flakebox's standalone ShellCheck hook.

Both settings default to off. Each check uses the generated pre-commit hook's file inventory and skips untracked files, symlinks, and inventory exclusions. Docker Compose validation and Tokio-specific lint rules remain project-specific.

@dpc
dpc enabled auto-merge (rebase) November 20, 2026 02:48
Fedimint added YAML and workflow checks in fedimint/fedimint#9290.
Expose them as independent Flakebox options so projects can enable either
without writing a custom hook or adding both linters to their dev shell.

Use the pre-commit hook's tracked text inventory to respect exclusions
and pass filenames without shell splitting. Yamllint checks syntax and
duplicate keys without enforcing style. Actionlint checks only direct
workflow files and uses ShellCheck independently of the standalone hook.
Leave Docker Compose and Tokio lint rules to individual projects.

### Review

Code review caught a nonportable ShellCheck store path in the generated
hook. Resolve ShellCheck at runtime and report a missing binary explicitly.
Editorial review clarified how to opt in and run the checks.
@dpc
dpc force-pushed the dpc/jj-wtmyytlqpnvl branch from d7dc967 to 3832246 Compare November 20, 2026 04:27
@dpc
dpc merged commit 01b5740 into rustshop:master Nov 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant